﻿<?
// include function files for this application
require_once('/home/domains/uny-con.com/public_html/uny-con_fns.php'); 
if (!session_id()) { session_start(); }

if (!check_valid_user()) {
	// they are not logged in 
	do_html_header('You must be logged in', staysmall, $uny);
	echo 'You are not logged in.<br />';
	do_html_url('login.php', 'Login');
	print_brs(24);
	do_html_footer(news);
	exit;
	}

do_html_header('Manage event GMs', gobig, $uny);
echo '<p>Below is a list of all RPGA events you are coordinating and the current player and GM count. a red asterisk <span class="redtext">*</span> next to the current GM number indicates you have unapproved GMs signed up to run that event. If this is the case you should click the number link in the Curr GMs column to go and approve or deny those gms.</p>';
if ($gmevents = get_gm_events($_SESSION['current_attendee_id'])) {
	print_event_gm_manage_table($gmevents);
} else {
	echo '<p>You are not registered to coordinate any RPGA events.</p>';
}
do_html_footer(no_news);

?>